<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <jsp:include page="public/public-head.jsp"/>
    </head>
    <body>      
        <div style="width: 600px;margin: 15px auto">
            <jsp:include page="public/public-userinfo-state.jsp"/>
            <div class="ui blue submit button">所有内容：</div>  <a href="${appHost}/BrandListServlet"> <div class="ui blue submit button">返回</div></a>
            <!--JSTL标签获取值并显示-->
            <c:forEach items="${contentList}" var="content" varStatus="i" >
                <div class="ui floating message">
                    <p>
                    <h6>[${i.index+1}]</h6>
                    <a href="${appHost}/ContentBodyServlet?id=${content.id}">${content.title}&nbsp;&nbsp;&nbsp;</a>
                    <span style="float:right">&nbsp作者：${content.userName}&nbsp;&nbsp;&nbsp;时间:：${content.putTime}</span>
                   </p>
                 </div>
            </c:forEach>   
        </div>
    </body>
</html>
